package com.bookstore.mapper;

import com.bookstore.entity.UserMessage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @Author Cofe
 * @Date 2022/4/21 18:11
 */
@Mapper
public interface UserMessageMapper {
    //查询用户的信息
    UserMessage findMessage(@Param("username") String username);
    //保存用户信息
    Integer saveusermessage(@Param("username") String username,@Param("name")String name);
    //修改用户信息
    Integer updateusermessage(@Param("username") String username,@Param("name")String name,@Param("address")String address,@Param("gender")String gender,@Param("age")int age,@Param("mail")String mail,@Param("phone")String phone);
}
